<template>
	<view class="" style="padding-bottom: 120rpx;">
		<view class="">
			<u-parse :html="protocolHtml" />
		</view>
		<view class="" style="height: 300rpx;">

		</view>
		<view class="asda">
			<view class="btn" @click="onAgreement">
				同意并签名
			</view>
		</view>
	</view>
</template>

<script>
	import {
		xinyongpdf
	} from '@/api/lease'
	export default {
		data() {
			return {
				seconds: 15,
				id: 0,
				protocolHtml: ""
			};
		},
		onLoad(e) {
			this.id = e.id
			console.log('this.id',this.id);
			xinyongpdf({
				id: this.id,
			}).then(({
				code,
				data
			}) => {
				this.protocolHtml = data
			})
		},
		methods: {
			onAgreement() {
				uni.redirectTo({
					url: '/bundle/pages/sign/sign?id='+this.id
				})
			},
			submit() {

			}
		}
	};
</script>

<style>
	.asda {
		position: fixed;
		bottom: 0;
		width: 100%;
		background-color: #fff;
		padding: 30rpx;
		box-sizing: border-box;
	}

	.btn {
		background-color: #24A3FF;
		padding: 30rpx 0;
		text-align: center;
		color: #fff;
		border-radius: 60rpx;
	}
</style>